package com.example.handler;

import com.example.pojo.User;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping
public class XssController {

    @RequestMapping("xss")
    public String testXss(String name){
        System.out.println(name);
        return name;
    }

    @RequestMapping("hah")
    public String testXssJson(@RequestBody String username){
        return username;
    }
    @RequestMapping("hah2")
    public User testXssJson(@RequestBody User user){
        return user;
    }
}
